package com.powervision.mvvmdemo.ui.repository

import com.powervision.http.base.BaseRepository
import com.powervision.http.entity.ApiResponse
import com.powervision.mvvmdemo.ui.http.RetrofitClient
import com.powervision.mvvmdemo.ui.model.DataBean

/**
 * @auth: njb
 * @date: 2021/12/21 12:44
 * @desc: 描述
 */
class ArticleTopRepository :BaseRepository(){
    private val mArticleTopRepository by lazy {
        RetrofitClient.service
    }

    suspend fun top():ApiResponse<List<DataBean>>{
        return executeHttp {
            mArticleTopRepository.top()
        }
    }
}